<?php
namespace Admin\Controller;

class DbController extends CheckController {

    //删除缓存
    public function index(){
        //title
        $this->page_title="سانداننى زاپاسلاش";
        $this->display('index');
    }
    //通过ajax删除chche缓存
    public function ajax_beifen(){
        if(IS_AJAX){
            // 导入Org类库包 Library/Org/Util/Date.class.php类库
            //备份
            $x=new \Org\Util\Db();
            $x->host='localhost';
            $x->user='root';
            $x->pwd='12345678';
            $x->database='yahximusiz';
            $rs=$x->beifen('Public/sql/new_yahximusiz.sql');
            echo response_jison_exit("1"," ساندان زاپاسلاندى . ",$rs);
        }
    }

}